package com.tensquare.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Administrator on 2021/6/23.
 */
@FeignClient("tensquare-user")   //服务调用的名称
public interface UserClient {

    @RequestMapping(value="/user/{userid}/{friendid}/{x}",method= RequestMethod.PUT)  //服务调用的地址
    public void updateFanscountAndFollowcount(@PathVariable("userid") String userid, @PathVariable("friendid") String friendid, @PathVariable("x") int x);
}
